import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Addnews from '@/components/Addnews'
import Login from '@/components/Login'
import Addcomment from '@/components/Addcomment'
import Show from '@/components/Show'
import Shownews from '@/components/Shownews'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/addnews',
      name: 'Addnews',
      component: Addnews
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/addcomment',
      name: 'Addcomment',
      component: Addcomment
    },
    {
      path: '/show',
      name: 'Show',
      component: Show
    },
    {
      path: '/shownews',
      name: 'Shownews',
      component: Shownews
    },
  ]
})
